define(['../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
    	$scope.$emit("top-show",'true');//顶部显示
    	// $scope.$emit('menuTypeLight','loan'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','80'); 	//显示底部文字
    	
    	$scope.applyforNow = function(){
            if(transData.sessionId != null && transData.sessionId != ""){
                //判断是不是律师
                if(transData.userType === '1'){
                    $scope.$emit("goNext","/applyNpl");
                }else{
                   FIREFLY("对不起，您还不是律师用户", "请先在'个人信息'中升级为律师用户！","",function(){ });
                }
            }else{
                $scope.$emit("goNext","/login");
            }
    	}
        $scope.$apply();
    }];
});